﻿<%@ Page Title="Home" Language="C#" MasterPageFile="~/Web/bloglayout.Master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="pwblog.Web.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="blogCPH" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            setCookie('selectedTab', '/web/default.aspx');
        });
    </script>
    <%--<asp:Repeater ID="articleRepeater" runat="server">
        <ItemTemplate>
        <div class="title_article">
            <h2><a href="<%# Eval("Link") %>"><%# Eval("Title") %></a></h2>
            <p> Write by <b><%# Eval("Creator") %></b>, <%# Eval("PubDate") %></p>
        </div>
        <div class="description_article">
            <p><%# Eval("Description") %></p>
        </div>
        </ItemTemplate>
    </asp:Repeater>--%>

    <asp:Repeater ID="articleRepeater" runat="server">
        <ItemTemplate>
        <div class="post wrapper">
            <img width="200" height="200" src="<%# Eval("Image") %>" alt="<%# Eval("Name") %>" />
            <h3 class="arti_title">
                <a href="DetailsArticle.aspx?id=<%# Eval("Id") %>"><%# Eval("Name") %></a>
            </h3>
            <div class="arti_detail_info">
                <%# Eval("Description") %> ...
                <a href="DetailsArticle.aspx?id=<%# Eval("Id") %>"><span class="readmore-link">Read more</span></a>
            </div>
            <div class="post_footer">
                <div>
                    <span class="author">Posted by <span class="fn"><%# Eval("UserName") %></span></span>
                    <span class="date">At <span class="fn"><%# Eval("DatePost") %></span></span>
                    <span class="comment"><a href="#"><span class="fn">0</span> comment(s)</a></span>
                </div>
                <div>
                    <span class="post tags">Labels:</span>
                </div>
            </div>
        </div>
        </ItemTemplate>
    </asp:Repeater>

    <div class="paging block">
        <asp:Button ID="lbntPrevious" Text="Trang trước" runat="server" OnClick="lbntPrevious_Click" ToolTip="Trang trước" class="previous" />
        <asp:Button ID="lbntFirst" Text="Trang đầu" runat="server" OnClick="lbntFirst_Click" ToolTip="Trang đầu tiên" class="first" />
        
        <asp:Button ID="lbntLast" Text="Trang cuối" runat="server" OnClick="lbtnLast_Click" ToolTip="Trang cuối" class="last"/>
        <asp:Button ID="lbtnNext" Text="Trang sau" runat="server" OnClick="lbtnNext_Click" ToolTip="Trang kế" class="next"/>
    </div>

</asp:Content>
